package cn.itcast.n3_Java线程;

import cn.itcast.Constants;
import cn.itcast.util.FileReader;
import lombok.extern.slf4j.Slf4j;

/**
 * @program: juc
 * @description:
 * @author: flyduck
 * @create: 2024-08-29 17:23
 **/
@Slf4j(topic = "c.Test25_线程的六种状态_证明bio操作时线程的状态也是runnable")
public class Test25_线程的六种状态_证明bio操作时线程的状态也是runnable {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(() -> {
            FileReader.read(Constants.MP4_FULL_PATH);
        }, "t1");
        t1.start();
        while (true){
            Thread.sleep(1000);
            log.debug("t1的线程状态：{}", t1.getState().toString().toLowerCase());
        }
    }
}
